/*
 * File:   Grid.cpp
 * Author: Elevator
 *
 * Created on 22 Июнь 2013 г., 13:46
 */

#include "Grid.h"

Grid::Grid( )
{
}

Grid::Grid( const Grid& )
{
}

Grid::~Grid( )
{
}

void Grid::Update( float )
{
}

void Grid::Draw( ) const
{
	float height = 100.0f;
	float width = 1000.0f;
	for( float x = -width; x < width; x+=1.0f )
	{
		core::Renderer::DrawLine(
			Vec3( x, -height, -0.9f ),
			Vec3( x, height, -0.9f ),
			core::Color( 1.0f, 1.0f, 1.0f, 0.1f ) );
	}
	for( float y = -height; y < height; y+=1.0f )
	{
		core::Renderer::DrawLine(
			Vec3( -width, y, -0.9f ),
			Vec3( width, y, -0.9f ),
			core::Color( 1.0f, 1.0f, 1.0f, 0.1f ) );
	}
}

